package com.forekenow.Demo8.Exercise.E7;

public class Rect extends Shape {
    double width;
    double longer;

    public double getWidth() {
        return width;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    public double getLonger() {
        return longer;
    }
    public  int getArea(){
        int area = (int) (this.getWidth() * this.getLonger());
        return area;
    }
    public void setLonger(double longer) {
        this.longer = longer;
    }

    public static void main(String[] args) {
        Rect rect = new Rect();
        rect.setLonger(2);
        rect.setWidth(3);
        rect.getArea();
        System.out.println(rect.getArea());

    }


}
